from pydantic import BaseModel, Field


class BannerVo(BaseModel):
    """banner视图"""
    id: int = Field(None, description="业务id")
    img_url: str = Field(None, alias="imgUrl", description="图片url")
    img_name: str = Field(None, alias='imgName', description="名称")
    params: str = Field(None, alias='params', description="参数")
    model_config = {
        "from_attributes": True,
        "strict": False,
        "populate_by_name": True,
    }